package action;

import java.util.List;

import javax.persistence.EntityManager;

import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Logger;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Out;
import org.jboss.seam.log.Log;

import entity.Nomikai;

@Name("nomikaiListAction")
public class NomikaiListAction
{
    @Logger private Log log;

//    @In StatusMessages statusMessages;

	
	@In EntityManager entityManager;
	@Out
	private List<Nomikai> nomikais;
	
    public void page()
    {
        // implement your business logic here
        log.info("nomikaiListAction.page() action called");
//        statusMessages.add("page");
        
        this.nomikais=entityManager.createQuery("select t from Nomikai t").getResultList();
    }

    // add additional action methods

}
